import { ReactNode } from "react";
import style from './index.module.css';

export default function Content({ children, title, operation }: { children: ReactNode, title: string, operation?: ReactNode }) {
    return <>
        <div className={style.title}>
            {title}
            <span className={style.btn}>{operation}</span>
        </div>
        <div className={style.content}>
            {children}
        </div>
    </>
}